[PATCH] MDEV-38811 crash in information_schema.table_constraints when --skip-grant...
authorSergei Golubchik <serg@mariadb.org>
Fri, 13 Feb 2026 14:22:57 +0000 (15:22 +0100)
committerOtto Kekäläinen <otto@debian.org>
Thu, 19 Feb 2026 08:08:08 +0000 (08:08 +0000)
acl_get_all3() wasn't expecting --skip-grant-tables

Multiple users reported Akonadi crashing with MariaDB 11.8.6. Downgrading to
11.8.5 fixed it. Reason most likely due to upstream regression as described
in detail in bug reports.

Origin: https://github.com/MariaDB/server/commit/87309d3d4bb8f48910d05b0ca5ee989bcdd6b053.patch
Bug: https://jira.mariadb.org/browse/MDEV-38811
Forwarded: not-needed

Gbp-Pq: Name MDEV-38811-skip-grant-tables-crash.patch

sql/sql_acl.cc

index a583c0b44879cbf97166d655b4fd4602321e5734..b6abd27e870511016f71b5ac04547a84d5248b6d 100644 (file)
@@ -3927,6 +3927,9 @@ exit:
 privilege_t acl_get_all3(Security_context *sctx, const char *db,
                          bool db_is_patern)
 {
+  if (!initialized)
+    return DB_ACLS;
+
   privilege_t access= acl_get(sctx->host, sctx->ip,
                               sctx->priv_user, db, db_is_patern);
   if (sctx->priv_role[0])